//
//  UIImage+FGExtension.h
//  FGSDK
//
//  Created by LWF on 2018/5/4.
//  Copyright © 2018年 杭州东九网络科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (FGExtension)
    
+ (UIImage *)imageWithColor:(UIColor *)color;
    
    //图片拉伸
+ (UIImage *)resizableImageWithName:(NSString *)name;
    /**     left、top为0~1    */
+ (UIImage *)resizableImageWithName:(NSString *)name left:(CGFloat)left top:(CGFloat)top;
    
    /**    将图片方向修正，如果方向本来就对则返回自己     */
- (UIImage *)fixOrientation;
    
    
+ (UIImage *)videoFramerateWithPath:(NSString *)videoPath;
    //视频的某一帧
+ (UIImage *)thumbnailImageForVideo:(NSURL *)videoURL atTime:(NSTimeInterval)time ;
    
    // 压缩图片
+ (UIImage *)simpleImage:(UIImage *)originImg;
    
+ (UIImage *)makeArrowImageWithSize:(CGSize)imageSize
                              image:(UIImage *)image
                           isSender:(BOOL)isSender;
    
+ (UIImage *)addImage2:(UIImage *)firstImg
               toImage:(UIImage *)secondImg;
    
+ (UIImage *)addImage:(UIImage *)firstImg
              toImage:(UIImage *)secondImg;
    
+ (UIImage *)videoFramerateWithPath:(NSString *)videoPath AtTime:(NSInteger)time;
    
+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;
+ (UIImage *) imageToTransparent:(UIImage*) image;

@end
